from django.shortcuts import render
from commodity.models import Commodity,CommodityCategory,UserOrder

# Create your views here.
def payment(request):
    '''
    订单处理
    :param request:
    :return:
    '''
    if request.method == "POST":
        pass
    else:
        commodity_no = request.GET.get('c_id')
        commodity = Commodity.objects.get(commodity_no=commodity_no)
        return render(request,'commodity/payment.html',locals())



def lucky(request):
    '''
    幸运转盘
    :param request:
    :return:
    '''
    return render(request,'commodity/lucky.html')
